#include <bitset>
#include <iostream>

int main(int argc, char *argv[]) {
  std::bitset<4> b = {8};

  // show number of bit set.
  std::cout << b.count() << "\n";
  // compare with int
  std::cout << (b == 8) << "\n";

  std::cout << b.to_string() << "\n";

  return 0;
}
